package cn.kgc.service;

import cn.kgc.pojo.SmbmsAddress;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AddressService {

    int getAddressConut(String contact);

    List<SmbmsAddress> getAddressBypage(Integer pageNo,
                                        Integer pageSize,
                                        String contact);

    boolean addAddress(SmbmsAddress smbmsAddress);

    boolean updateAddress(SmbmsAddress smbmsAddress);

    boolean delAddress(Integer id);

    SmbmsAddress getpostCode(@Param("postCode")String postCode);

    SmbmsAddress getAddressId(Integer id);
}
